package org.example.compare.global;

import org.springframework.stereotype.Component;

@Component
public class Global {

    public static final float NIL = 123456789.987654321f;
    public static final float INSERT_TICKET = 1000.0f;

    public static final String MID_CHECK_PROCESS = "中查";
    public static final String SEND_OUT_PROCESS = "外发";
    public static final String INTERRUPT_PROCESS = "中断";
    public static final String SECONDPACKUP_PROCESS = "二次合筐";
    public static final int NORMAL_PROCESS_ATTRI = 0;        //正常生产
    public static final int OUT_LINE_PROCESS_ATTRI = 1;        //线外生产
    public static final int SKIP_PROCESS_ATTRI = 2;        //跳过生产

    public static final int OFF_LINE_P_S = 0;
    public static final int FREE_P_S = 1;
    public static final int IN_PRO_ONLY_P_S = 2;
    public static final int WAITING_FOR_ONLY_PRO_P_S = 3;
    public static final int BUSY_P_S = 4;
    public static final int STOP_RECV_P_S = 5;
    public static final int IN_THE_WAY_P_S = 6;

    //生产状态：0 新料、1 回库、 2 在库、3 送产、4 待产、5 在产、6 暂停、7 重配、8 送查、9 外发出库、10 中断出库、11 成部出库、12 成品出库、13 强制出库、14 等待出库、15 等待中查。
    public static final int NEW_FEED_B_S = 0;//新料 status_info存放进料时间，界面可直接显示
    public static final int BACK_LIB_B_S = 1;//回库 status_info存放从哪个工位回库（int转成string进行保存），界面显示“来自n号工位”
    public static final int IN_LIB_B_S = 2;//在库 status_info存放库位号（int转成string进行保存），界面显示“库位：n”
    public static final int SEND_PRO_B_S = 3;//送产 status_info 目标工位（int转成string进行保存），界面显示“送往n号工位”
    public static final int WAITING_FOR_PRO_B_S = 4;//待产 status_info 所在工位
    public static final int IN_PRO_B_S = 5;//在产 status_info 所在工位，但需要显示已经生产时间，界面需要获取当前时间，然后与筐的start_time作差值secsto接口获取秒数；

    public static int gFeedCyclePercent = 3;
    public static int gBalanceLevel = 5;
    public static int gAllInLibUseTotal0Box1 = 0;//全部在库用整单件数或当前筐
    public static int gAllInLibOnlyHaveDone = 1;//全部在库只给做过本单的工位
    public static int gRuleProcessWaitPositionSecond = 600;
    public static int gRuleHourTargetWindow = 4;

    public static final float BASE_TIME = 1800;
    public static final String AGENT_WORKER_NUM = "agent";
}
